using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Rotempco.Core.Logging.Objects;
using Rotempco.Core.Logging.Objects.Exceptions;
using Rotempco.Core.Logging.DAL;
using Rotempco.Core.Logging.Objects.Stores;
using Rotempco.Core.Logging.EntityObjects.Objects;

namespace Rotempco.Core.Logging.Managers.LogProviders
{
    internal class LogToDatabaseManager
    {
        internal void SaveLogMessage(LogStack logEntry)
        {
            if (LogSettingsStore.Instance.LogSettings == null)
                throw new LogConfigurationException("Log not configured for database");

            LogDataFactory.LogStack.WriteToDB(logEntry);

        }
    }
}
